package ecg.util;

import java.util.Map;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.ActionContext;

public class SessionUtils {
	static Logger log = Logger.getLogger(SessionUtils.class);
	
	public static Map<String, String> getLoginSession() throws Exception {
		Map<String, String> session = null;
		
		try{
			session = ActionContext.getContext().getSession();
		} catch(NullPointerException npe) {
			log.error("session이 없습니다. (NullPointerException", npe);
		} catch(Exception e) {
			log.error("session 조회중 에러가 발생했습니다.", e);
		}
		
		return session;
	}
}
